# ASP Response Object

« Previous
Next Chapter »

The ASP Response object is used to send output to the user from the server.

## Examples

Write text with ASP
How to write text with ASP.

Format text with HTML tags in ASP
How to combine text and HTML tags with ASP.

Redirect the user to a different URL
How to redirect the user to a different URL.

Show a random link
How to create a random link.

Controlling the buffer
How to control the buffer.

Clear the buffer
How to clear the buffer.

End a script in the middle of processing and return the result
How to end a script in the middle of processing.

Set how many minutes a page will be cached in a browser before it expires
How to specify how many minutes a page will be cached in a browser before it expires.

Set a date/time when a page cached in a browser will expire
How to specify a date/time a page cached in a browser will expire.

Check if the user is still connected to the server
How to check if a user is disconnected from the server.

Set the type of content
How to specify the type of content.

Set the name of the character set
How to specify the name of the character set.

## Response Object

The ASP Response object is used to send output to the user from the server. Its collections, properties, and methods are described below:

### Collections

Collection | Description
--- | ---
Cookies | Sets a cookie value. If the cookie does not exist, it will be created, and take the value that is specified

### Properties

Property | Description
--- | ---
Buffer | Specifies whether to buffer the page output or not
CacheControl | Sets whether a proxy server can cache the output generated by ASP or not
Charset | Appends the name of a character-set to the content-type header in the Response object
ContentType | Sets the HTTP content type for the Response object
Expires | Sets how long (in minutes) a page will be cached on a browser before it expires
ExpiresAbsolute | Sets a date and time when a page cached on a browser will expire
IsClientConnected | Indicates if the client has disconnected from the server
Pics | Appends a value to the PICS label response header
Status | Specifies the value of the status line returned by the server

### Methods

Method | Description
--- | ---
AddHeader | Adds a new HTTP header and a value to the HTTP response
AppendToLog | Adds a string to the end of the server log entry
BinaryWrite | Writes data directly to the output without any character conversion
Clear | Clears any buffered HTML output
End | Stops processing a script, and returns the current result
Flush | Sends buffered HTML output immediately
Redirect | Redirects the user to a different URL
Write | Writes a specified string to the output

« Previous
Next Chapter »

### WEB HOSTING

UK Reseller Hosting

### WEB BUILDING

FREE Website BUILDER Free HTML5 Templates

### W3SCHOOLS EXAMS

HTML, CSS, JavaScript, PHP, jQuery, XML, and ASP Certifications

### SHARE THIS PAGE

### Color Picker

### HTML/CSS

HTML Tutorial HTML5 Tutorial CSS Tutorial CSS3 Tutorial Bootstrap Tutorial

### JavaScript

JavaScript Tutorial jQuery Tutorial jQuery Mobile Tutorial AngularJS Tutorial AJAX Tutorial JSON Tutorial

### Graphics

Canvas Tutorial SVG Tutorial Google Maps Tutorial

### Server Side

SQL Tutorial PHP Tutorial ASP Tutorial ASP.NET Tutorial VBScript Tutorial AppML Tutorial

### Web

Web Building Web Statistics Web Certification

### XML

XML Tutorial DTD Tutorial Schema Tutorial XML DOM Tutorial XPath Tutorial XSLT Tutorial XQuery Tutorial XSL-FO Tutorial RSS Tutorial WSDL Tutorial

### HTML/CSS

HTML Tag Reference HTML Event Reference HTML Color Reference CSS 1,2,3 Reference Bootstrap Reference

### JavaScript

JavaScript Reference HTML DOM Reference jQuery Reference jQuery Mobile Reference Google Maps Reference

### Server Side

PHP Reference SQL Reference ASP Reference VBScript Reference Razor Reference ASP.NET Reference

### XML

XML DOM Reference XSLT Reference XSL-FO Reference XPath Reference XQuery Reference Schema Reference RSS Reference SVG Reference

### HTML Charsets

HTML Character Sets HTML ASCII HTML ANSI HTML Windows-1252 HTML ISO-8859-1 HTML Symbols HTML UTF-8

### HTML/CSS

HTML Examples CSS Examples

### Browser Scripting

JavaScript Examples HTML DOM Examples jQuery Examples jQuery Mobile Examples AngularJS Examples AJAX Examples

### Server Scripting

PHP Examples ASP Examples VBScript Examples Razor Examples .NET Examples

### XML Languages

XML Examples DTD Examples XML DOM Examples XSL Examples XSLT Examples XPath Examples XQuery Examples Schema Examples RSS Examples SVG Examples